// 封装mixin 混入方法

import store from '@/store'

export default {
  // 封装全局混入方法
  methods: {
    assignPerm(type) {
      const points = store.state.user.userPermissions.points

      return points.indexOf(type) !== -1
    }
  }
}
